Optimal. Leaf size=62 \[ \frac {\sqrt {a^2+2 a b x+b^2 x^2}}{b^2}-\frac {a (a+b x) \log (a+b x)}{b^2 \sqrt {a^2+2 a b x+b^2 x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 62, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.136, Rules used = {640, 608, 31} \[ \frac {\sqrt {a^2+2 a b x+b^2 x^2}}{b^2}-\frac {a (a+b x) \log (a+b x)}{b^2 \sqrt {a^2+2 a b x+b^2 x^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 608
Rule 640
Rubi steps
\begin {align*} \int \frac {x}{\sqrt {a^2+2 a b x+b^2 x^2}} \, dx &=\frac {\sqrt {a^2+2 a b x+b^2 x^2}}{b^2}-\frac {a \int \frac {1}{\sqrt {a^2+2 a b x+b^2 x^2}} \, dx}{b}\\ &=\frac {\sqrt {a^2+2 a b x+b^2 x^2}}{b^2}-\frac {\left (a \left (a b+b^2 x\right )\right ) \int \frac {1}{a b+b^2 x} \, dx}{b \sqrt {a^2+2 a b x+b^2 x^2}}\\ &=\frac {\sqrt {a^2+2 a b x+b^2 x^2}}{b^2}-\frac {a (a+b x) \log (a+b x)}{b^2 \sqrt {a^2+2 a b x+b^2 x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 33, normalized size = 0.53 \[ \frac {(a+b x) (b x-a \log (a+b x))}{b^2 \sqrt {(a+b x)^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.79, size = 17, normalized size = 0.27 \[ \frac {b x - a \log \left (b x + a\right )}{b^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.19, size = 31, normalized size = 0.50 \[ \frac {x \mathrm {sgn}\left (b x + a\right )}{b} - \frac {a \log \left ({\left | b x + a \right |}\right ) \mathrm {sgn}\left (b x + a\right )}{b^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.05, size = 33, normalized size = 0.53 \[ -\frac {\left (b x +a \right ) \left (a \ln \left (b x +a \right )-b x \right )}{\sqrt {\left (b x +a \right )^{2}}\, b^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.31, size = 37, normalized size = 0.60 \[ -\frac {a \log \left (x + \frac {a}{b}\right )}{b^{2}} + \frac {\sqrt {b^{2} x^{2} + 2 \, a b x + a^{2}}}{b^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.28, size = 57, normalized size = 0.92 \[ \frac {\sqrt {a^2+2\,a\,b\,x+b^2\,x^2}}{b^2}-\frac {a\,b\,\ln \left (a\,b+\sqrt {{\left (a+b\,x\right )}^2}\,\sqrt {b^2}+b^2\,x\right )}{{\left (b^2\right )}^{3/2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.12, size = 14, normalized size = 0.23 \[ - \frac {a \log {\left (a + b x \right )}}{b^{2}} + \frac {x}{b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________